package org.minbox.framework.microservice.order.service.impl;

import org.minbox.framework.microservice.common.entity.OrderInfo;
import org.minbox.framework.microservice.order.mapper.OrderMapper;
import org.minbox.framework.microservice.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 恒宇少年
 */
@Service
@Transactional
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public OrderInfo findByNumber(String orderNumber) {
        return orderMapper.findByNumber(orderNumber);
    }
}
